// 全局组件的注册
import Tabs from '@/components/Tabs' // 顶部栏组件
import UploadExcel from '@/components/UploadExcel' // 表格导入组件
import LoginSetting from '@/views/employees/components/login-setting' // 登录设置
import UserInfo from '@/views/employees/components/user-info' // 用户设置
import JobInfo from '@/views/employees/components/job-info' // 工作设置
import UploadImg from '@/components/UploadImg' // 工作设置
import ImageHolder from '@/components/ImageHolder' // 头像设置
import AssignRole from '@/views/employees/components/assignRole' // 权限分配
import Lang from '@/components/Lang' // 语言转换
import FullScreen from '@/views/dashboard/components/FullScreen' // 语言转换

// Vue.use的使用
// 1.创建一个对象,对象中必须要有install方法
export default {
  // 这里的Vue是形参,在use调用时会自动将Vue构造器传递进去
  install(Vue) {
    // 在方法内注册全局组件
    Vue.component('Tabs', Tabs)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('LoginSetting', LoginSetting)
    Vue.component('UserInfo', UserInfo)
    Vue.component('JobInfo', JobInfo)
    Vue.component('UploadImg', UploadImg)
    Vue.component('ImageHolder', ImageHolder)
    Vue.component('AssignRole', AssignRole)
    Vue.component('Lang', Lang)
    Vue.component('FullScreen', FullScreen)
  }
}
